<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
    var contextPath = "${ctx}";
</script>
<!-- 左边 -->
   <div class="nav">
				<div class="nav_t">全部商品分类</div>
				<div class="leftNav">
					<ul>
						<c:forEach items="${requestScope.listProductCategory}"
							var="category">
							<c:if test="${category.type == 1 }">
								<li>
									<div class="fj">
										<span class="n_img"><span></span><img
											src="images/nav1.png" /></span> 
											<span class="fl"><a href="ProductServlet?action=queryList&categoryId=${category.id }&categoryLeve1=${category.type }&currPage=1">${category.name }</a></span>
									</div>
									<div class="zj">
										<div class="zj_l">
											<c:forEach items="${requestScope.listProductCategory}"
												var="category2">
												<c:if
													test="${category2.type == 2 and category2.parentId == category.id}">
													<div class="zj_l_c">
														<h2><a href="ProductServlet?action=queryList&categoryId=${category2.id }&categoryLeve1=${category2.type}&currPage=1">${category2.name}</a></h2>
														   <c:forEach items="${requestScope.listProductCategory}"
															var="category3">
															<c:if
																test="${category3.type == 3 and category3.parentId == category2.id}">
																<a href="ProductServlet?action=queryList&categoryId=${category3.id }&categoryLeve1=${category3.type}&currPage=1">${category3.name }</a>|
													        </c:if>
														   </c:forEach>
													</div>
												</c:if>
											</c:forEach>
										</div>
										<div class="zj_r">
											<a href="CategoryList.html"><img src="images/n_img1.jpg"
												width="236" height="200" /></a> <a href="CategoryList.html"><img
												src="images/n_img2.jpg" width="236" height="200" /></a>
										</div>
									</div>
								</li>
							</c:if>
						</c:forEach>
					</ul>
				</div>
</div>
<!-- 中间 -->
<ul class="menu_r">                                                                                                                                               
	<li><a href="Index.html">首页</a></li>
    <c:forEach var="categrory" items="${allProductCategrory }">
    	<c:if test="${categrory.type == 1 }">
    		<li><a href="${ctx}/product?action=queryList&categoryId=${categrory.id}&categoryLevel=${categrory.type}&currPageNo=1">${categrory.name }</a></li>
    	</c:if>
    </c:forEach>
</ul>
<!-- 右边  -->
<div class="m_ad">中秋送好礼！</div>